import { routesPath } from './routesPath'

export const routes = routesPath

export const menu = [
  {
    icon: 'home',
    name: '首页',
    key: 'home',
    path: '/home/index'

  },
  {
    icon: 'user',
    name: '用户',
    path: '/beinoen/order',
    key: 'user',
    child: [{
      name: '用户管理',
      key: 'users-manage',
      child: [{
        name: '管理列表',
        path: '/users/manage/list',
        key: 'users-manage-list'
      }, {
        name: '登陆明细',
        path: '/users/manage/login-details',
        key: 'users-login-details'
      }]
    }, {
      name: '积分管理',
      path: '/users/integral/manage',
      key: 'users-integral-manage'
    }, {
      name: '邀请管理',
      path: '/users/invite/manage',
      key: 'users-invite-manage'
    }, {
      name: '用户规则',
      path: '/users/rules',
      key: 'users-rules'
    }]
  },
  {
    icon: 'block',
    name: '场景',
    key: 'sences',
    child: [
      {
        name: '场景列表',
        path: '/scenes/list',
        key: 'scenes-list'
      },
      {
        name: '添加场景',
        path: '/scenes/add',
        key: 'scenes-add'
      },
      {
        name: '场景回收',
        path: '/scenes/recycle',
        key: 'scenes-recycle'
      }
    ]
  },
  {
    icon: 'appstore',
    name: '商品',
    key: 'goods',
    child: [
      {
        name: '商品列表',
        path: '/goods/list',
        key: 'goods-list'
      },
      {
        name: '新建商品',
        path: '/goods/add',
        key: 'goods-add'
      },
      {
        name: '库存管理',
        key: 'goods-mana',
        child: [
          {
            name: '商品库存',
            path: '/goods/store',
            key: 'goods-store'
          },
          {
            name: '商品出库',
            path: '/goods/storeout',
            key: 'scenes-storeout'
          }
        ]
      },
      {
        name: '商品回收站',
        path: '/goods/recycle',
        key: 'goods-recycle'
      },
      {
        name: '创作者管理',
        path: '/goods/creator',
        key: 'goods-creator'
      }
    ]
  },
  {
    icon: 'appstore',
    name: '商品兑换',
    key: 'exchange',
    child: [{
      name: '兑换商品管理',
      path: '/exchange/manage',
      key: 'exchange-manage'
    }, {
      name: '兑换订单信息',
      path: '/exchange/order',
      key: 'exchange-order'
    }]
  },
  {
    icon: 'bar-chart',
    name: '运营',
    key: 'operation',
    child: [
      // {
      //   name: '动态推送',
      //   key: 'push',
      //   child: [
      //     {
      //       name: '自动推送',
      //       path: '/operation/auto/push',
      //       key: 'auto-push'
      //     },
      //     {
      //       name: '人工推送',
      //       path: '/operation/person/push',
      //       key: 'person-push'
      //     }
      //   ]
      // },
      {
        name: '推送管理',
        path: '/operation/push',
        key: 'push'
      },
      {
        name: 'banner列表',
        path: '/operation/banner',
        key: 'banner'
      },
      {
        name: '活动管理',
        key: 'activity',
        path: '/operation/activity'
      },
      {
        name: '视频管理',
        key: 'radio',
        path: '/operation/radio'
      }
    ]
  },
  {
    key: 'order',
    icon: 'file-done',
    name: '订单',
    child: [
      {
        name: '订单列表',
        path: '/order/list',
        key: 'order-list'
      },
      {
        name: '订单状态设置',
        path: '/order/infrastructure',
        key: 'order-infrastructure'
      }
      // {
      //   name: '订单管理',
      //   key: 'order-list',
      //   child: [
      //     {
      //       name: '订单列表',
      //       path: '/order/list'
      //     },
      //     {
      //       name: '订单状态设置',
      //       path: '/order/infrastructure',
      //       key: 'order-infrastructure'
      //     }
      //   ]
      // }
      // {
      //   name: '确认收货',
      //   path: '/order/confirm',
      //   key: 'order-confirm'
      // },
      // {
      //   name: '退款管理',
      //   path: '/order/refund',
      //   key: 'order-refund'
      // },
      // {
      //   name: '退货管理',
      //   path: '/order/return',
      //   key: 'order-return'
      // }
    ]
  },
  {
    key: 'data',
    icon: 'pie-chart',
    name: '数据',
    child: [
      {
        name: '会员统计',
        path: '/data/member',
        key: 'data-member'
      },
      {
        name: '交易统计',
        path: '/data/trade',
        key: 'data-trade'
      },
      {
        name: '流量统计',
        path: '/data/flow',
        key: 'order-flow'
      },
      {
        name: '商品统计',
        path: '/data/goods',
        key: 'data-goods'
      },
      {
        name: '对账结算',
        path: '/data/reconciliation',
        key: 'data-reconciliation'
      }
    ]
  },
  {
    key: 'setting',
    icon: 'setting',
    name: '设置',
    child: [
      {
        name: '角色权限',
        key: 'role',
        child: [{
          name: '成员管理',
          path: '/setup/staff/list',
          key: 'setup-staff-list'
        }, {
          name: '部门管理',
          path: '/setup/department/list',
          key: 'setup-department-list'
        }, {
          name: '操作日志',
          path: '/setup/logpage/list',
          key: 'users-logpage-list'
        }, {
          name: '角色管理',
          path: '/setup/roles/list',
          key: 'setup-roles-list'
        }]
      },
      {
        name: '协议管理',
        key: 'protocol',
        child: [
          {
            name: '协议列表',
            path: '/setup/protocol/list',
            key: 'setup-protocol-list'
          },
          {
            name: '帮助列表',
            path: '/setup/help/list',
            key: 'setup-help-list'

          }
        ]
      }
    ]
  }
]
